# base command for rplidar
cmd = {
    'STOP':'A5 25',
    'RESET':'A5 40',
    'EXPSCAN':'A5 82 05 00 00 00 00 00 22',
    'GETINFO':'A5 50',
    'GETHELH':'A5 52',
    'GETRATE':'A5 59'
}
# answer for commands
ans = {
    'EXPSCAN':r'a55a5400004082',
    'GETINFO':r'a55a1400000004',
    'GETHELH':r'a55a0300000006',
    'GETRATE':r'a55a0400000015',
}
# command in list it has answer
has_ans = ['GETINFO','GETHELH','GETRATE','EXPSCAN']
# empty code for data process
empty_code = [(-1,-1)]